import { Component, OnInit, Input, OnDestroy } from '@angular/core'
import { ChargeBackDataService } from '../../../charge-back.data.service'
import { I18NService } from '@core'

@Component({
  selector: 'app-charge-back-close-operate',
  templateUrl: './close-operate.component.html',
})
export class CloseOperateComponent implements OnInit, OnDestroy {
  @Input() operateRemark: string

  constructor(
    public chargeBackDataService: ChargeBackDataService,
    private i18n: I18NService,
   ) {}

  ngOnInit() {}

  ngOnDestroy() {
    this.chargeBackDataService.resetOperateBody()
  }

  trans(key: string, params?: Object): string {
    return this.i18n.fanyi(key, params)
  }
}
